<%-- 
    Document   : adminlogin
    Created on : Oct 20, 2011, 3:38:18 PM
    Author     : user
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%String error = (String)request.getAttribute("erroradminlogin");%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="../js/hexmd5.js"></script>
</head>
<body>
<div>
<div>
<h1 style="color:#0066CC; position:absolute; left: 467px; top: 40px;">Sacombank Admin</h1>
</div>
<div>
  <form action="LoginAdmin" method="post" style="position:absolute; left: 479px; top: 121px;">
    <table border="0">
      <tr>
        <td>User name</td>
        <td><input name="username" type="text" /></td>
      </tr>
      <tr>
        <td>Password</td>
        <td><input name="password" type="password" id="password"/></td>
      </tr>
      <tr>
      <input type="hidden" name="hash" id="hash"/>
          <td colspan="2"><input type="submit" value="Đăng nhập" 
                                 onclick="document.getElementById('hash').value=hex_md5(document.getElementById('password').value)"/> </td> 
      </tr>
      <tr>
          <td colspan="2"><%
                           if(error!=null)
                               out.print("<span style='color:red'>"+error+"</span>");
          %> </td>
      </tr>
    </table>
  </form>
</div>
</div>

</body>
</html>